this script instantiates a liquid
if(theCollision.gameObject.name == “book”) { Instantiate(liquid, paper.transform.position, transform.rotation); }
how to make the instantiated liquid to be a child of the gameobject then destroy it oncollision exit
if(theCollision.gameObject.name == "book") { GameObject childLiquid=Instantiate(liquid, paper.transform.position, transform.rotation); // I assume your parent object is named "Par" childLiquid.transform.parent = Par.tranform;
}