Skip to content

[Bug] wrong type info #1213

Description

@FlashHit
-- this is a GameObjectData
local s_Instance = p_WorldPartData.objects[l_Index]

if s_Instance.typeInfo.name == "ReferenceObjectData" then
	-- here I change it to a ReferenceObjectData
	---@type ReferenceObjectData
	s_Instance = ReferenceObjectData(s_Instance)

	-- here it behaves like a GameObjectData again, which is wrong
	local s_Blueprint = s_Instance.blueprint
end

grafik
grafik
grafik

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions